home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _077D4A4B3AD64A8D83D4CC283D973C3B < prev    next >
Encoding:
Text File  |  2003-08-28  |  6.1 KB  |  188 lines

  1. <HTML>
  2.     <HEAD>
  3.         <script language="JavaScript" src="whver.js"></script>
  4.         <script language="javascript">
  5.             function replacePipe(in_str)
  6.             {
  7.                 var out_str = in_str;
  8.                 var temp_str = "";
  9.                 var nIndex = out_str.indexOf("%7C");
  10.                 while (nIndex >= 0)
  11.                 {
  12.                     temp_str = out_str.substring(0,nIndex);
  13.                     temp_str +="|";
  14.                     temp_str +=out_str.substring(nIndex+3);
  15.                     out_str = temp_str;
  16.                     var nIndex = out_str.indexOf("%7C");
  17.                 }
  18.                 return out_str;
  19.             }
  20.             function decodeString(in_str)
  21.             {
  22.                 var temp_str = "";
  23.                 var begin_str = "";
  24.                 var end_str = "";
  25.                 var out_str= replacePipe(in_str);
  26.                 var nIndex = out_str.indexOf("|");
  27.                 var nEndIndex = -1;
  28.                 while (nIndex >= 0)
  29.                 {
  30.                     nEndIndex = out_str.indexOf("|",nIndex+1);
  31.  
  32.                     // Get the character value
  33.                     begin_str = out_str.substring(0,nIndex);
  34.                     temp_str = out_str.substring(nIndex+1,nEndIndex);
  35.                     temp_str = String.fromCharCode(Number(temp_str));
  36.                     end_str = out_str.substr(nEndIndex+1);
  37.  
  38.                     // Replace the character in the string
  39.                     out_str = begin_str + temp_str + end_str;
  40.                     nIndex = out_str.indexOf("|");
  41.                 }
  42.                 return out_str;
  43.             }
  44.             // First, parse out the arguments from the command line
  45.             var argstring = window.location.search;
  46.             if (argstring.charAt(0) == '?') {
  47.                 argstring = argstring.substring(1, argstring.length);
  48.             }
  49.             if (window.dialogArguments != null) {
  50.                 argstring = window.dialogArguments;
  51.             }
  52.             if (gbIE4 && !gbIE5)
  53.             {
  54.                 argstring = window.location.hash;
  55.                 if (argstring.charAt(0) == '#') {
  56.                     argstring = argstring.substring(1, argstring.length);
  57.                 }                
  58.             }
  59.             var about_str = "About";
  60.             var aboutIndex = argstring.indexOf("pbaboutlabel=");
  61.             if (aboutIndex != -1) 
  62.             {
  63.                 about_str = argstring.substr(aboutIndex + 13, argstring.length);
  64.                 aboutIndex = about_str.indexOf("&");
  65.                 if (aboutIndex != - 1)
  66.                 {
  67.                     about_str = about_str.substr(0,aboutIndex);
  68.                 }
  69.                 about_str = decodeString(about_str);
  70.                 
  71.             }
  72.         </script>
  73.         <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
  74.  
  75.         <script language="javascript">
  76.             var sHtml = "";
  77.             sHtml +="<TITLE>";
  78.             sHtml += about_str;
  79.             sHtml += " FlashHelp           ";
  80.             sHtml += "          ";
  81.             sHtml += "          ";
  82.             sHtml += "          ";
  83.             sHtml += "          ";
  84.             sHtml += "</TITLE>";
  85.             document.write(sHtml);
  86.         </script>
  87.         <script language="vbscript">
  88.             Sub poweredbySWF_FSCommand(ByVal command, ByVal args)
  89.                 call poweredbySWF_DoFSCommand(command, args)
  90.             end sub
  91.         </script>
  92.         <script language="javascript">
  93.             
  94.             // Calculate the current timeout
  95.             var iTimer = argstring.indexOf("WaitTimeout=");
  96.             var timeout = 2000;
  97.             if (iTimer != -1) {
  98.                 var timeout_str = argstring.substring(iTimer + 12, argstring.length);
  99.                 timeout = parseInt(timeout_str, 10);
  100.             }
  101.             
  102.             var bGotStarted = false;
  103.             function DoCommand(command, args) {
  104.                 if (command == "CmdPoweredByStarted") {
  105.                     bGotStarted = true;
  106.                 } else if (command == "CmdPoweredByMail") {
  107.                     window.location = "mailto:" + args;
  108.                 } else if (command == "CmdPoweredByHyperlink") {
  109.                     window.open(args);
  110.                 }
  111.             }
  112.                                     
  113.             function poweredbySWF_DoFSCommand(command, args) {
  114.                 DoCommand(command, args);
  115.             }
  116.             
  117.             function CheckIfStarted() {
  118.                 // Reload ourselves if the movie didn't get started
  119.                 if (!bGotStarted) {
  120.                     var iTimer = argstring.indexOf("WaitTimeout=");
  121.                     var newargs = argstring;
  122.                     if (iTimer != -1) {
  123.                         newargs = argstring.substring(0, iTimer - 1);
  124.                     }
  125.                     timeout += 2000;
  126.                     newargs += "&WaitTimeout=" + timeout;
  127.                     window.location.replace("wf_poweredby.htm?" + newargs);
  128.                 }
  129.             }
  130.  
  131.             // Set a timeout on Netscape 4 to see if we got loaded
  132.             if (document.layers) {
  133.                 setTimeout("CheckIfStarted()", timeout);
  134.             }
  135.         </script>
  136.     </HEAD>
  137.     <BODY MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0">
  138.         <script language="JavaScript">
  139.             
  140.             // Create the variable string we will be sending. Fortunately, the string is
  141.             // already URL-encoded with the proper delimiters, so we don't have to do any translation.
  142.             strFlashVars = argstring;
  143.             strFlashVars += "&bUseFScommand=";
  144.             if ((gbIE4 && gbWindows) ||
  145.                 ((gbNav && !gbNav6) && gbWindows)) {
  146.                 strFlashVars += "1";
  147.             } else {
  148.                 strFlashVars += "0";
  149.             }
  150.             if (gbIE4) {
  151.                 strFlashVars += "&bSendLinks=1";
  152.             } else {
  153.                 strFlashVars += "&bSendLinks=0";
  154.             }
  155.             var sHeight = "100%";
  156.             var sWidth = "100%";
  157.             if (gbNav4 && !gbNav6 && !gbWindows && !gbMac)
  158.             {
  159.                 sHeight = "" + window.innerHeight;
  160.                 sWidth  = "" + window.innerWidth;
  161.             }
  162.                     
  163.             // OBJECT tag portion
  164.             strObject = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'";
  165.             strObject += "WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"' id='poweredbySWF' ALIGN='' VIEWASTEXT>";
  166.             strObject += "<PARAM NAME='movie' VALUE='wf_poweredby.swf'>";
  167.             strObject += "<PARAM NAME='quality' VALUE='high'>";
  168.             strObject += "<PARAM NAME='menu' value='false'>";
  169.             strObject += "<PARAM NAME='scale' VALUE='exactfit'>";
  170.                     
  171.             // FlashVars for Object tag:
  172.             strObject += "<PARAM NAME=FlashVars VALUE='" + strFlashVars + "'>";
  173.  
  174.             // EMBED tag portion
  175.             strObject += "<EMBED src='wf_poweredby.swf' quality='high' menu='false' scale='exactfit' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"'";
  176.             strObject += " NAME='poweredbySWF' swLiveConnect='true' ALIGN='' ";
  177.                     
  178.             // FlashVars for Embed tag:
  179.             strObject += "FlashVars='" + strFlashVars + "' ";
  180.             strObject += "TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>";
  181.             strObject += "</EMBED>";
  182.             strObject += "</OBJECT>";
  183.                     
  184.             document.write(strObject);
  185.         </script>
  186.     </BODY>
  187. </HTML>
  188.